<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="openbang.chatroom.service.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="open source chat room "/>
<link type="text/css" rel="stylesheet" href="./css/openbang.css"/>  

<!-- 页面加载在没有加载 GWT 代码，就显示进度条 , 这里的样式仅用于这个进度条 -->			
<style>
#loading {
  position: absolute;
  left: 45%;
  top: 40%;
  margin-left: -45px;
  padding: 2px;
  z-index: 20001;
  height: auto;
  border: 1px solid #ccc;
}

#loading .loading-indicator {
  background: white;
  color: #444;
  font: bold 13px tahoma, arial, helvetica;
  padding: 10px;
  margin: 0;
  height: auto;
}

#loading .loading-indicator img {
  margin-right:8px;
  float:left;
  vertical-align:top;
}

#loading-msg {
  font: normal 10px arial, tahoma, sans-serif;
}
</style>


<title>开源邦 畅聊今宵</title>

<%
   //TODO 没有加安全控制 --- 退出后，只要有这个链接就可以访问聊天室
   //应增加 session id 控制

   String chatGroupId = request.getParameter("chatGroupId");
   String niceName = request.getParameter("niceName");
   if(chatGroupId==null || chatGroupId.length()<=0){
	   SessionHelper.forwardToErrorPage("进入聊天室","没有指定聊天室代码","返回原页面再次操作",request,response);
	   return; 
   }
%>

<script language="javascript" type=text/javascript>
    function getChatGroupId(){
	   return "<%=chatGroupId%>";
	}
    function getNiceName(){
 	   return "<%=niceName%>";
 	}
	   
</script>

</head>

<body marginheight="0" topmargin="0" bottommargin="0" leftmargin="0">
<p class="ptext" align=center>聊天室面板</p>
<div id="loading">
    <table class="loading-indicator">
    <tr><td align="center"><img src="images/large-loading.gif" onclick="window.location.href='http://www.openbang.net'"></img></td></tr>
    <tr><td><span id="loading-msg">数据加载中...</span></td></tr>
    </table>
</div>

<div id="chatroomnow_div">
</div>

</body>
<script type="text/javascript" language="javascript" src="/chatroomnow/chatroomnow.nocache.js"></script>
</html>
